import request from '@/utils/request'

// 查询参加活动列表
export function listJion(query) {
  return request({
    url: '/gxs/jion/list',
    method: 'get',
    params: query
  })
}

// 查询参加活动详细
export function getJion(gxsJoinid) {
  return request({
    url: '/gxs/jion/' + gxsJoinid,
    method: 'get'
  })
}

// 新增参加活动
export function addJion(data) {
  return request({
    url: '/gxs/jion',
    method: 'post',
    data: data
  })
}

// 修改参加活动
export function updateJion(data) {
  return request({
    url: '/gxs/jion',
    method: 'put',
    data: data
  })
}

// 删除参加活动
export function delJion(gxsJoinid) {
  return request({
    url: '/gxs/jion/' + gxsJoinid,
    method: 'delete'
  })
}


// 查询参加活动详细
export function addJionPro(gxsPendActivityid) {
  return request({
    url: '/gxs/jion/addJionPro/' + gxsPendActivityid,
    method: 'get'
  })
}


// 查询参加活动列表
export function applicationn(gxsPendActivityid) {
  return request({
    url: '/gxs/jion/applicationn/' + gxsPendActivityid,
    method: 'get'
  })
}


// 申请活动加分
export function applyBonus(gxsPendActivityid) {
  return request({
    url: '/gxs/jion/applyBonus/' + gxsPendActivityid,
    method: 'get'
  })
}


// 查询参加活动列表
export function bonus(gxsPendActivityid) {
  return request({
    url: '/gxs/jion/bonus/' + gxsPendActivityid,
    method: 'get'
  })
}

// 查询参加活动列表
export function examineList(query) {
  return request({
    url: '/gxs/jion/examineList',
    method: 'get',
    params: query
  })
}

// 查询参加活动详细
export function getApplyJion(gxsJoinid) {
  return request({
    url: '/gxs/jion/getApplyJion/' + gxsJoinid,
    method: 'get'
  })
}
